//
//  weichatpay.h
//  weichatpay
//
//  Created by YY on 17/2/16.
//  Copyright © 2017年 YY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WXApi.h"

@interface weichatpay : NSObject <WXApiDelegate>
/*
 微信支付初始化
 */
+(void) doWeChatPaySDKInit:(NSString *)appid;
/*
 
 request.partnerId = @"10000100";
 request.prepayId= @"1101000000140415649af9fc314aa427";
 request.package = @"Sign=WXPay";
 request.nonceStr= @"a462b76e7436e98e0ed6e13c64b4fd1c";
 request.timeStamp= @"1397527777";
 request.sign= @"582282D72DD2B03AD892830965F428CB16E7A256";
 */
+(void) doWeChatPaySDKPayNow:(NSString *)partnerId :(NSString *)prepayid :(NSString *)package :(NSString *)nonceStr :(UInt32)timeStamp :(NSString *)sign;

-(void) onResp:(BaseResp *)resp;
@end
